package com.bw.mallshop.login;

import androidx.databinding.ObservableField;

import com.blankj.utilcode.util.LogUtils;
import com.bw.mvvm_common.entity.BaseEntity;
import com.bw.mvvm_common.mvvm.viewmodel.BaseViewModel;

/**
 * @author KK
 * @description:
 * @date :2021/10/12 17:50
 */
public class LoginViewModel extends BaseViewModel<LoginModel> {
    public ObservableField<String> name = new ObservableField<>();
    public ObservableField<String> pwd = new ObservableField<>();
    @Override
    protected void result(BaseEntity baseEntity) {

    }

    public void loginClick(){
        LogUtils.e("loginClick:"+name);
        LogUtils.e("loginClick:"+pwd);

        m.login(name.get(),pwd.get());
    }
}
